package com.my.study.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "thread")
@Data
public class ThreadPoolConfig {

    // 核心线程池
    private int corePoolSize;
    // 最大线程池
    private int maxPoolSize;
    // 线程队列
    private int queueCapacity;
    // 线程名称
    private String NamePrefix;
    // 存活时间
    private int keepAliveSeconds;
}
